Just like switcher popups, popup menus don't play well together with
system modals, and generally have a lower priority. So just like
switcher popups, close popup menus when a system modal dialog pops
up.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1536
this._onKeyPress.bind(this));
}
+ this._systemModalOpenedId = 0;
this._openedSubMenu = null;
}
if (this.isEmpty())
return;
+ if (!this._systemModalOpenedId) {
+ this._systemModalOpenedId =
+ Main.layoutManager.connect('system-modal-opened', () => this.close());
+ }
+
this.isOpen = true;
this._boxPointer.setPosition(this.sourceActor, this._arrowAlignment);
destroy() {
if (this._keyPressId)
this.sourceActor.disconnect(this._keyPressId);
+
+ if (this._systemModalOpenedId)
+ Main.layoutManager.disconnect(this._systemModalOpenedId);
+ this._systemModalOpenedId = 0;
+
super.destroy();
}
};